home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / amiga / make-367.lha / make-3.67 / Makefile < prev    next >
Makefile  |  1993-05-24  |  9KB  |  264 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # NOTE: If you have no `make' program at all to process this makefile, run
  3. # `build.sh' instead.
  4. #
  5. # Copyright (C) 1988, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
  6. # This file is part of GNU Make.
  7. #
  8. # GNU Make is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 2, or (at your option)
  11. # any later version.
  12. #
  13. # GNU Make is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with GNU Make; see the file COPYING.  If not, write to
  20. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  
  22. #
  23. #    Makefile for GNU Make
  24. #
  25.  
  26. # Ultrix 2.2 make doesn't expand the value of VPATH.
  27. VPATH = .
  28. srcdir = $(VPATH)
  29.  
  30. CC = gcc
  31.  
  32. CFLAGS = -O
  33. LDFLAGS =
  34.  
  35. # Define these for your system as follows:
  36. #    -DNO_ARCHIVES        To disable `ar' archive support.
  37. #    -DNO_FLOAT        To avoid using floating-point numbers.
  38. #    -DENUM_BITFIELDS    If the compiler isn't GCC but groks enum foo:2.
  39. #                Some compilers apparently accept this
  40. #                without complaint but produce losing code,
  41. #                so beware.
  42. # NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
  43. defines = -DHAVE_CONFIG_H -DNO_FLOAT #-DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\"
  44.  
  45. # Which flavor of remote job execution support to use.
  46. # The code is found in `remote-$(REMOTE).c'.
  47. REMOTE = stub
  48.  
  49. # If you are using the GNU C library, or have the GNU getopt functions in
  50. # your C library, you can comment these out.
  51. GETOPT = getopt.o getopt1.o
  52. GETOPT_SRC = $(srcdir)/getopt.c $(srcdir)/getopt1.c $(srcdir)/getopt.h
  53.  
  54. # If you are using the GNU C library, or have the GNU glob functions in
  55. # your C library, you can comment this out.  GNU make uses special hooks
  56. # into the glob functions to be more efficient (by using make's directory
  57. # cache for globbing), so you must use the GNU functions even if your
  58. # system's C library has the 1003.2 glob functions already.  Also, the glob
  59. # functions in the AIX and HPUX C libraries are said to be buggy.
  60. GLOB = glob/libglob.a
  61.  
  62. # If your system doesn't have alloca, or the one provided is bad, define this.
  63. ALLOCA =
  64. ALLOCA_SRC = $(srcdir)/alloca.c
  65.  
  66. # If your system needs extra libraries loaded in, define them here.
  67. # System V probably need -lPW for alloca.  HP-UX 7.0's alloca in
  68. # libPW.a is broken on HP9000s300 and HP9000s400 machines.  Use
  69. # alloca.c instead on those machines.
  70. LOADLIBES =
  71.  
  72. # Any extra object files your system needs.
  73. extras =  getloadavg.o
  74.  
  75. # Common prefix for machine-independent installed files.
  76. prefix = /usr/local
  77. # Common prefix for machine-dependent installed files.
  78. exec_prefix = $(prefix)
  79.  
  80. # Name under which to install GNU make.
  81. instname = make
  82. # Directory to install `make' in.
  83. bindir = $(exec_prefix)/bin
  84. # Directory to find libraries in for `-lXXX'.
  85. libdir = $(exec_prefix)/lib
  86. # Directory to search by default for included makefiles.
  87. includedir = $(prefix)/include
  88. # Directory to install the Info files in.
  89. infodir = $(prefix)/info
  90. # Directory to install the man page in.
  91. mandir = $(prefix)/man/man$(manext)
  92. # Number to put on the man page filename.
  93. manext = 1
  94.  
  95. # Whether or not make needs to be installed setgid.
  96. # The value should be either `true' or `false'.
  97. # On many systems, the getloadavg function (used to implement the `-l'
  98. # switch) will not work unless make is installed setgid kmem.
  99. install_setgid = false
  100. # Install make setgid to this group so it can read /dev/kmem.
  101. group =
  102.  
  103. # Program to install `make'.
  104. INSTALL_PROGRAM = $(INSTALL)
  105. # Program to install the man page.
  106. INSTALL_DATA = $(INSTALL) -m 644
  107. # Generic install program.
  108. INSTALL = /usr/local/bin/install -c
  109.  
  110. # Program to format Texinfo source into Info files.
  111. MAKEINFO = makeinfo
  112. # Program to format Texinfo source into DVI files.
  113. TEXI2DVI = texi2dvi
  114.  
  115. # Programs to make tags files.
  116. ETAGS = etags -tw
  117. CTAGS = ctags -tw
  118.  
  119. objs = commands.o job.o dir.o file.o misc.o main.o read.o remake.o    \
  120.        rule.o implicit.o default.o variable.o expand.o function.o    \
  121.        vpath.o version.o ar.o arscan.o signame.o remote-$(REMOTE).o     \
  122.        $(GLOB) $(GETOPT) $(ALLOCA) $(extras)
  123. srcs = $(srcdir)/commands.c $(srcdir)/job.c $(srcdir)/dir.c             \
  124.        $(srcdir)/file.c $(srcdir)/getloadavg.c $(srcdir)/misc.c         \
  125.        $(srcdir)/main.c $(srcdir)/read.c $(srcdir)/remake.c             \
  126.        $(srcdir)/rule.c $(srcdir)/implicit.c $(srcdir)/default.c        \
  127.        $(srcdir)/variable.c $(srcdir)/expand.c $(srcdir)/function.c     \
  128.        $(srcdir)/vpath.c $(srcdir)/version.c                            \
  129.        $(srcdir)/remote-$(REMOTE).c                                     \
  130.        $(srcdir)/ar.c $(srcdir)/arscan.c                                \
  131.        $(srcdir)/signame.c $(srcdir)/signame.h $(GETOPT_SRC)            \
  132.        $(srcdir)/commands.h $(srcdir)/dep.h $(srcdir)/file.h            \
  133.        $(srcdir)/job.h $(srcdir)/make.h $(srcdir)/rule.h                \
  134.        $(srcdir)/variable.h $(ALLOCA_SRC) $(srcdir)/config.h.in
  135.  
  136.  
  137. .SUFFIXES:
  138. .SUFFIXES: .o .c .h .ps .dvi .texinfo
  139.  
  140. .PHONY: all check info dvi
  141. all: make
  142. check: # No tests.
  143. info: make.info
  144. dvi: make.dvi
  145.  
  146. make.info: make.texinfo
  147.     $(MAKEINFO) -I$(srcdir) $(srcdir)/make.texinfo -o make.info
  148.  
  149. make.dvi: make.texinfo
  150.     $(TEXI2DVI) $(srcdir)/make.texinfo
  151.  
  152. make.ps: make.dvi
  153.     dvi2ps make.dvi > make.ps
  154.  
  155. make: $(objs)
  156.     $(CC) $(LDFLAGS) $(objs) $(LOADLIBES) -o make.new
  157.     mv -f make.new make
  158.  
  159. # -I. is needed to find config.h in the build directory.
  160. .c.o:
  161.     $(CC) $(defines) -c -I. -I$(srcdir) -I$(srcdir)/glob \
  162.           $(CFLAGS) $< $(OUTPUT_OPTION)
  163.  
  164. # For some losing Unix makes.
  165. SHELL = /bin/sh
  166. MAKE = make
  167.  
  168. glob/libglob.a: force
  169.     cd glob; $(MAKE) CC='$(CC)' CFLAGS='$(CFLAGS) -I..' \
  170.              CPPFLAGS='$(CPPFLAGS) -DHAVE_CONFIG_H' \
  171.              libglob.a
  172. force:
  173.  
  174. tagsrcs = $(srcs) $(srcdir)/remote-*.c
  175. TAGS: $(tagsrcs)
  176.     $(ETAGS) $(tagsrcs)
  177. tags: $(tagsrcs)
  178.     $(CTAGS) $(tagsrcs)
  179.  
  180. .PHONY: install installdirs
  181. install: installdirs \
  182.      $(bindir)/$(instname) $(infodir)/$(instname).info \
  183.      $(mandir)/$(instname).$(manext)
  184.  
  185. installdirs:
  186.     $(SHELL) ${srcdir}/mkinstalldirs
  187.  
  188. $(bindir)/$(instname): make
  189.     $(INSTALL_PROGRAM) make $@.new
  190. # These are necessary for load-average checking to work on most Unix machines.
  191.     if $(install_setgid); then \
  192.       chgrp $(group) $@.new && chmod g+s $@.new; \
  193.     else true; fi
  194. # Some systems can't deal with renaming onto a running binary.
  195.     -rm -f $@.old
  196.     -mv $@ $@.old
  197.     mv $@.new $@
  198.  
  199. $(infodir)/$(instname).info: make.info
  200.     for file in make.info*; do \
  201.       $(INSTALL_DATA) $$file \
  202.         `echo $@ | sed "s,$(instname).info\$$,$$file,"`; \
  203.     done
  204.  
  205. $(mandir)/$(instname).$(manext): make.man
  206.     $(INSTALL_DATA) $(srcdir)/make.man $@
  207.  
  208. .PHONY: clean realclean distclean mostlyclean
  209. clean: glob-clean
  210.     -rm -f make *.o core
  211. distclean: clean glob-realclean
  212.     -rm -f Makefile config.h config.status build.sh
  213.     -rm -f TAGS tags make.info* make.dvi
  214.     -rm -f make.?? make.??s make.log make.toc make.*aux
  215. realclean: distclean
  216. mostlyclean: clean
  217.  
  218. .PHONY: glob-clean glob-realclean
  219. glob-clean glob-realclean:
  220.     cd glob; $(MAKE) $@
  221.  
  222. Makefile: config.status $(srcdir)/Makefile.in
  223.     $(SHELL) config.status
  224. config.h: stamp-config ;
  225. stamp-config: config.status $(srcdir)/config.h.in
  226.     $(SHELL) config.status
  227.     touch stamp-config
  228.  
  229. configure: configure.in
  230.     autoconf $(ACFLAGS)
  231. config.h.in: configure.in
  232.     autoheader $(ACFLAGS)
  233.  
  234. # This tells versions [3.59,3.63) of GNU make not to export all variables.
  235. .NOEXPORT:
  236.  
  237. # Automatically generated dependencies will be put at the end of the file.
  238.  
  239. # Automatically generated dependencies.
  240. commands.o : commands.c make.h config.h dep.h commands.h file.h variable.h \
  241.   job.h
  242. job.o : job.c make.h config.h commands.h job.h file.h variable.h
  243. dir.o : dir.c make.h config.h
  244. file.o : file.c make.h config.h commands.h dep.h file.h variable.h
  245. main.o : main.c make.h config.h commands.h dep.h file.h variable.h job.h \
  246.   getopt.h
  247. read.o : read.c make.h config.h commands.h dep.h file.h variable.h glob/glob.h
  248. remake.o : remake.c make.h config.h commands.h job.h dep.h file.h
  249. rule.o : rule.c make.h config.h commands.h dep.h file.h variable.h rule.h
  250. implicit.o : implicit.c make.h config.h rule.h dep.h file.h
  251. default.o : default.c make.h config.h rule.h dep.h file.h commands.h variable.h
  252. variable.o : variable.c make.h config.h commands.h variable.h dep.h file.h
  253. expand.o : expand.c make.h config.h commands.h file.h variable.h
  254. function.o : function.c make.h config.h variable.h dep.h commands.h job.h
  255. vpath.o : vpath.c make.h config.h file.h variable.h
  256. version.o : version.c
  257. ar.o : ar.c make.h config.h file.h
  258. arscan.o : arscan.c make.h config.h
  259. signame.o : signame.c config.h signame.h
  260. remote-stub.o : remote-stub.c make.h config.h commands.h
  261. getopt.o : getopt.c config.h getopt.h
  262. getopt1.o : getopt1.c config.h getopt.h
  263. getloadavg.o : getloadavg.c config.h
  264.